<?php

class Rzd_Form_Decorator_SelectGroup extends Zend_Form_Decorator_Abstract
{
    protected $_displayedText;

    public function getDisplayedText()
    {
        if (null !== ($dispayedText = $this->getOption('name'))) {
            $this->setDisplayedText($dispayedText);
        }

        return $this->_displayedText;
    }

    public function setDisplayedText($dispayedText)
    {
        $this->_displayedText = $dispayedText;
    }

    public function render($content)
    {

        $groupName = $this->getDisplayedText();

        $element =  $this->getElement();
        $separator =  $this->getSeparator();

        return '<b>' . $groupName . '</b>' . $separator .  $content;
    }

}